<script>
export default {
	onLaunch: function() {
		console.log('App Launch')
		uni.getStorage({
			key: "hasLogin",
			success: (res) => {
				console.log(res)
				if( res.data ) {
					uni.switchTab({
						url:"/pages/tabbar/tabbar-1/tabbar-1"
					})
				} else {
					uni.navigateTo({
						url:"/pages/student/login"
					})
				}
				
			}
		})
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	}
};
</script>

<style>
/*每个页面公共css */ 
</style>
